

#ifndef __CharacterSet_H__
#define __CharacterSet_H__

#include "boost/lexical_cast.hpp"

class CharacterSet
{
public:
	static void ConvertUTF8ToASCII( const char* src, std::string dst );

	template <typename T> 
	static std::string ConvertToStdString(const T& arg);
};

template <typename T>
std::string CharacterSet::ConvertToStdString(const T& arg)
{
	try 
	{    
		return boost::lexical_cast<std::string>(arg);  
	}  
	catch(boost::bad_lexical_cast& e) 
	{    
		return "";  
	}
}

#endif // __SYSTEMAPI_H__